<?php $this->load->view('common/head');?>
<?php $this->load->view('common/navbar');?>
<!-- 查询框开始 -->
<div class="table-responsive">
<form class="form-inline" method="GET" name="query" id="query">
<input type="hidden" name="c" id="c" value="<?php echo $_GET['c'] ?>">
<input type="hidden" name="m" id="m" value="<?php echo $_GET['m'] ?>">
  <div class="form-group">
    <label for="year">所属年份：</label>
    <select class="form-control" id="year" name="year">
      <option value="">请选择</option>
	</select>
  </div>
  <div class="form-group">
    <label for="timeUnit">所属双月：</label>
    <select class="form-control" id="timeUnit" name="timeUnit">
      <option value="">请选择</option>
	</select>
  </div>
  <div class="form-group">
  	<button type="submit" class="btn btn-default btn-primary">搜索</button>
	<button type="button" class="btn btn-default btn-primary" onclick="newWindow('开通审核通道','<?=printUrl('AgainLimit','auditAdd')?>',400,450)" role="button">开通审核</button>
	</div>
	</form>
</div>
<!-- 查询框结束 -->
<!-- 表格列表 -->
<div style="margin-top: 10px;">
<table class="table table-bordered table-condensed">
	<thead>
	  <tr>
	  	<th class="bg-primary text-center">所属年份</th>
	    <th class="bg-primary text-center">所属双月</th>
	    <th class="bg-primary text-center">开始时间</th>
	    <th class="bg-primary text-center">结束时间</th>
	    <th class="bg-primary text-center">操作</th>
	  </tr>
	</thead>
	<tbody>
	  <?php foreach ($supplementList as $k => $v) {?>
	  <tr class="<?=$v['isDel']==1?'danger':'success'?>">
	  	<td class="text-center"><?=$v['year']?></td>
	    <td class="text-center"><?=$v['timeUnitStr']?></td>
	    <td class="text-center"><?=$v['startTimeStr']?></td>
	    <td class="text-center"><?=$v['endTimeStr']?></td>
	    <td class="text-center">
	        <button type="button" class="btn btn-default" onclick="newWindow('修改审核通道','<?=printUrl('AgainLimit','auditAdd', array('id'=>$v['id']))?>',400,450)" role="button">修改</button>
	        <button type="button" class="btn btn-default" onclick="ajaxConfirmSubmit('您确定要<?=$v['isDel']==1?'开通':'关闭'?>此审核权限吗？','<?=printUrl('AgainLimit','auditClose')?>',{'id':<?=$v['id']?>,'isDel':<?=$v['isDel']==1?0:1?>})"><?=$v['isDel']==1?'开通':'关闭'?></button>
	    </td>
	  </tr>
	  <?php } ?>
	</tbody>
</table>
</div>
<!-- 分页 -->
<?=$pager?>
<script type="text/javascript">
	$(function(){
		loadYearList('year',<?=$year ? $year : 0?>);
	    loadTimeUnitList('timeUnit',<?=$year ? $year : 0?>,<?=$timeUnit ? $timeUnit : 0?>);
	});
</script>
<?php $this->load->view('common/foot');?>